// 开启子线程 执行系统内部命令
const {
  exec
} = require('child_process');

module.exports = url => {
  switch (process.platform) {
  case 'darwin':
    exec(`open ${url}`);
    break;
  case 'win32':
    exec(`start ${url}`);
    break;
  default:
    break;
  }
};
